const gulp = require("gulp");

// 创建gulp函数
const task1 = (cb) => {
  console.log("task1 is running");
  cb();
}

const task2 = (cb) => {
  console.log("task2 is running");
  cb();
}

//旧版声明语法,不需要导出，直接 gulp task3
gulp.task("task3", (cb) => {
  console.log("task3 is running");
  cb();
})

//导出
module.exports = {
  task1,  // gulp task1
  default: task2  //gulp || gulp default，默认执行task2
};